package com.lxj.user.service;

import com.lxj.utils.common.CommonResult;
import com.lxj.utils.entity.Permission;
import com.lxj.utils.entity.User;
import com.lxj.utils.vo.UserRoleRelation;

import java.util.List;

public interface UserService {
    CommonResult findAll(User user);

    CommonResult add(User user);

    CommonResult delete(Integer[] id);

    CommonResult findRole(Integer id);

    CommonResult addRole(UserRoleRelation urr);

    CommonResult deleteRole(UserRoleRelation urr);

    CommonResult findName(String username);

    List<Permission> getPermissionsByUserId(Integer id);
}
